#include "widget.h"
#include "ui_widget.h"

#include <QDebug>
Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_radioButton_clicked(bool checked)
{
    // checked 表示radio是否被选中状态
    qDebug() << "clicked: " << checked;
}

void Widget::on_radioButton_2_clicked(bool checked)
{
    qDebug() << "pressed";
}

void Widget::on_radioButton_3_clicked(bool checked)
{
    qDebug() << "released";
}

void Widget::on_radioButton_4_clicked(bool checked)
{
    qDebug() << "toggled: " << checked;
}
